Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pbc conv args Final Draft #306

Merged
merged 15 commits into from
Nov 9, 2024
Merged

Conversation

RylieWeaver
Copy link
Collaborator

Fix pbc conv args final draft

Main points:

(1) I create edge_shifts in preprocessing with ASE, then apply those shifts in conv_args.

------The edge shifts adjust the relative vector for a connection. After additional research, I believe this to be the best way for fewer lines of code and being streamlined. It is also the approach of top competitors and does not disrupt gradient flow------

(2) Correctly applying PBC in models that update the position is currently not supported (SchNet / EGNN).

------At the core level, we have the problem that the positional update could make a node cross the supercell, even if we were to recalculate the shifts after each layer. I still allow the models to run, but simply continue to use the naive relative vectors------

(3) data.pbc is now a requirement for periodic boundary conditions

------I make an effort to include it in any examples that use PBC------

@allaffa Assuming this passes the tests I'll schedule a meeting to go over the PR.

@RylieWeaver RylieWeaver requested a review from allaffa November 6, 2024 00:36
@allaffa allaffa added the bug Something isn't working label Nov 8, 2024
@allaffa
Copy link
Collaborator

allaffa commented Nov 8, 2024

@RylieWeaver
After merging the PR for MACE. conflicts popped up on this PR

@RylieWeaver RylieWeaver force-pushed the fix-pbc-conv-args--3 branch 5 times, most recently from 001dc39 to f8b252c Compare November 8, 2024 20:17
@allaffa allaffa merged commit 98e8bc3 into ORNL:main Nov 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants